<template>
	<view>
		<web-view :src="link" ref="webview"></web-view>
	</view>
</template>

<script>
	import md5 from 'js-md5'
	export default {
		data() {
			return {
				info: {},
				MtId: '3850',
				info1: {},
				link:''
			};
		},
		onLoad() {
			this.info = uni.getDeviceInfo()
			this.info1 = uni.getWindowInfo()
			let time = parseInt((new Date()).getTime() / 1000)
			let AppKey='cb90b807050e7106de836e83fd2812cf'
			let sign = md5(btoa(`${this.info.deviceId}#${this.info.deviceModel}#${uni.getStorageSync('ytbuser').id}#${this.MtId}#${this.info1.screenWidth}×${this.info1.screenHeight}#${this.info.system}#${time}#${AppKey}`))
			console.log(sign)
			this.link =
				`https://app.91taojin.com.cn/?MtId=${this.MtId}&MtIDUser=${uni.getStorageSync('ytbuser').id}&IMEI=${this.info.deviceId}&GetIMEI=''&OAID=''&Package=''&MobileModel=${this.info.deviceModel}&SysVer=${this.info.system}&IMSI=''&AndroidId=''&SerialNumber=''&IDTask=''&ScreenResolution=${this.info1.screenWidth}×${this.info1.screenHeight}Timestamp=${time}&sign=${sign}`
		},
		mounted() {

		}
	}
</script>

<style lang="scss">

</style>